usb: mv_udc: Clean up the initial variable check
authorMarek Vasut <[email protected]>
Wed, 10 Jul 2013 01:16:33 +0000 (03:16 +0200)
committerMarek Vasut <[email protected]>
Mon, 29 Jul 2013 21:01:31 +0000 (23:01 +0200)
commitd76630386d59d203ad4594d7e91be1f2e258ab93
tree44d3a3b8d371fe50c719feb539972e41dc472229
parentbe7ed2533d4acb9bc67989c4ffddb5814202ba02
usb: mv_udc: Clean up the initial variable check

Clean up the code that checks the validity of a USB gadget driver
in usb_gadget_register_driver(). Moreover, limit the speed of the
driver to either FULL or HIGH, this is more precise and once we
have xHCI support, also more correct.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Lei Wen <[email protected]>
Cc: Otavio Salvador <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/usb/gadget/mv_udc.c